package com.crt.nexus.security.annotation;

import com.crt.nexus.security.component.ResourceServerAutoConfiguration;
import com.crt.nexus.security.component.ResourceServerSecurityBeanRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * @author Genko
 *
 * 资源服务注解
 */
@Documented
@Inherited
@EnableResourceServer
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import({ResourceServerAutoConfiguration.class, ResourceServerSecurityBeanRegistrar.class})
public @interface EnableCrtResourceServer {
}
